import { sdkRequest } from '@/utils/sdkReuqest'
import { Reminder } from '@/config'
// 提醒订阅

export function ReminderDel(param, page) { // 删除
	return sdkRequest(
		'POST',
		`/${Reminder}/remind_subscribe/delete_subscribe_info/v1`,
		param,
		page
	)
}

export function ReminderSave(param, page) { // 保存
	return sdkRequest(
		'POST',
		`/${Reminder}/remind_subscribe/save_subscribe/v1`,
		param,
		page
	)
}

export function ReminderPageQueue(param, page) { // 分页查询
	return sdkRequest(
		'POST',
		`/${Reminder}/remind_subscribe/query_subscribe_list/v1`,
		param,
		page
	)
}

export function ReminderEnum(param, page) { // 枚举
	return sdkRequest(
		'POST',
		`/${Reminder}/enum_info/query_enums_info/v1`,
		param,
		page
	)
}

export function ReminderSender(param, page) { // 发件人
	return sdkRequest(
		'POST',
		`/${Reminder}/config/query_class_address_list/v1`,
		param,
		page
	)
}

export function ReminderRecipient(param, page) { // 收件人
	return sdkRequest(
		'POST',
		`/${Reminder}/config/get_receiver_group_list/v1`,
		param,
		page
	)
}

export function ReminderSign(param, page) { // 类别列表
	return sdkRequest(
		'POST',
		`/${Reminder}/config/get_remind_list/v1`,
		param,
		page
	)
}

export function ReminderAddFlag(param, page) { // 新增提醒标识
	return sdkRequest(
		'POST',
		`/${Reminder}/config/save_remind_type/v1`,
		param,
		page
	)
}

export function ReminderDeleteFlag(param, page) { // 删除提醒标识
	return sdkRequest(
		'POST',
		`/${Reminder}/config/delete_remind_type/v1`,
		param,
		page
	)
}
